import request from '@/plugin/axios'

export function fetchList (query) {
  return request({
    url: '/policy/list/page',
    method: 'get',
    params: query
  })
}

export function insert(obj) {
  return request({
    url: '/policy/insert',
    method: 'post',
    data: obj
  })
}

export function update(obj) {
  return request({
    url: '/policy/update',
    method: 'put',
    data: obj
  })
}

export function del(id) {
  return request({
    url: '/policy/delete/' + id,
    method: 'delete'
  })
}